#!/usr/bin/env python2
# coding=utf-8
import mspider, sys
class spiderStart(object):      
    def main(self,args_str):
        try:
            mspider.main(args_str)
        except KeyboardInterrupt, e:
            print '\nBreak out.'
            sys.exit(0)
    def stop(self):
        mspider.stop()       

if __name__ == '__main__':

    spider = spiderStart()
    spider.main()
